import request from '@/utils/request'

// 封装获取员工列表的方法
export const fetchEmploryeeList = params => request.get('/sys/user', { params })

// 封装新增员工的接口
export const fetchAddEmploryee = data => request.post('/sys/user', data)

// 封装批量新增员工的接口
export const importEmployee = data => request.post('/sys/user/batch', data)

// 封装给员工分配角色的请求
export const setEmployee = data => request.put('/sys/user/assignRoles', data)

// 封装获取员工基本信息的请求
export const emploryeeList = id => request.get(`/sys/user/${id}`)
